import request from '@/utils/request';


export async function queryPageConfig(pageId){


  return {
    status: true,
    entry:{
      searchData:[
        {
          label: '标签一',
          cType: "Input",
          placeholder: '请输入'
        },
        {
          label: '标签二',
          cType: 'div',
        },
        {
          label: '类型',
          cType: 'Select',
          options:[
            {
              label: '一',
              value: 1,
            },
            {
              label: '二',
              value: 2,
            },
          ]
        },
        {
          label: '类型',
          cType: 'Button',
          bindSearch:  true,
          child: '搜索'
        }
      ],
      columns:[
        {
          title: '姓名',
          dataIndex: 'name',
          key: 'name'
        }
      ],
      action: '/feps/logs/list'
    }
  }
}

export async function  getData(url, params){
  return request(url, {params})
}

export async function postData(url, params) {
  
  return request(url, {
    method: "POST",
    data:params,
  });

}